#include "Surface.h"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "../common/lib/SDL_rotozoom.h"
#include <iostream>
#include "../common/Constantes.h"

Surface::Surface() {
	this->surface = SDL_CreateRGBSurface(SDL_SWSURFACE, 100, 30, GAME_COLOR_DEPTH, 0, 0, 0,	0);
}

Surface::~Surface() {
}

SDL_Surface* Surface::getSurface() {
	return this->surface;
}

void Surface::SetVideoMode(int width, int height, int bpp, Uint32 flags) {
	SDL_FreeSurface(this->surface);
	this->surface = SDL_SetVideoMode(width, height, bpp, flags);
}
